package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Selleractivityrecord implements Serializable {
    private Integer sarid;

    private Integer atid;

    private Integer sid;

    private Date sastartdate;

    private Date saenddate;

    private Integer sacurrentprofit;

    private Integer satotalprofit;

    private String saimage;

    private static final long serialVersionUID = 1L;

    public Integer getSarid() {
        return sarid;
    }

    public void setSarid(Integer sarid) {
        this.sarid = sarid;
    }

    public Integer getAtid() {
        return atid;
    }

    public void setAtid(Integer atid) {
        this.atid = atid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Date getSastartdate() {
        return sastartdate;
    }

    public void setSastartdate(Date sastartdate) {
        this.sastartdate = sastartdate;
    }

    public Date getSaenddate() {
        return saenddate;
    }

    public void setSaenddate(Date saenddate) {
        this.saenddate = saenddate;
    }

    public Integer getSacurrentprofit() {
        return sacurrentprofit;
    }

    public void setSacurrentprofit(Integer sacurrentprofit) {
        this.sacurrentprofit = sacurrentprofit;
    }

    public Integer getSatotalprofit() {
        return satotalprofit;
    }

    public void setSatotalprofit(Integer satotalprofit) {
        this.satotalprofit = satotalprofit;
    }

    public String getSaimage() {
        return saimage;
    }

    public void setSaimage(String saimage) {
        this.saimage = saimage;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Selleractivityrecord other = (Selleractivityrecord) that;
        return (this.getSarid() == null ? other.getSarid() == null : this.getSarid().equals(other.getSarid()))
            && (this.getAtid() == null ? other.getAtid() == null : this.getAtid().equals(other.getAtid()))
            && (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getSastartdate() == null ? other.getSastartdate() == null : this.getSastartdate().equals(other.getSastartdate()))
            && (this.getSaenddate() == null ? other.getSaenddate() == null : this.getSaenddate().equals(other.getSaenddate()))
            && (this.getSacurrentprofit() == null ? other.getSacurrentprofit() == null : this.getSacurrentprofit().equals(other.getSacurrentprofit()))
            && (this.getSatotalprofit() == null ? other.getSatotalprofit() == null : this.getSatotalprofit().equals(other.getSatotalprofit()))
            && (this.getSaimage() == null ? other.getSaimage() == null : this.getSaimage().equals(other.getSaimage()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSarid() == null) ? 0 : getSarid().hashCode());
        result = prime * result + ((getAtid() == null) ? 0 : getAtid().hashCode());
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getSastartdate() == null) ? 0 : getSastartdate().hashCode());
        result = prime * result + ((getSaenddate() == null) ? 0 : getSaenddate().hashCode());
        result = prime * result + ((getSacurrentprofit() == null) ? 0 : getSacurrentprofit().hashCode());
        result = prime * result + ((getSatotalprofit() == null) ? 0 : getSatotalprofit().hashCode());
        result = prime * result + ((getSaimage() == null) ? 0 : getSaimage().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sarid=").append(sarid);
        sb.append(", atid=").append(atid);
        sb.append(", sid=").append(sid);
        sb.append(", sastartdate=").append(sastartdate);
        sb.append(", saenddate=").append(saenddate);
        sb.append(", sacurrentprofit=").append(sacurrentprofit);
        sb.append(", satotalprofit=").append(satotalprofit);
        sb.append(", saimage=").append(saimage);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}